<?php
if(!defined('PATH')) exit();
?>

<table border="0" cellpadding="8" cellspacing="1" width="100%">
<tr class="head"><td colspan="2"><b>Item check</b><span style="float:right;">(# <?=$this->paramsURI[2]?>)</span></td></tr>
<tr><td width="20%">Name:</td><td><?=ucwords($check->name)?></td></tr>
<tr><td width="20%">Amount:</td><td><?=ucwords($check->amount)?>x</td></tr>
<tr><td>Price:</td><td><?=$check->price . ' ' . $check->unit?></td></tr>
<tr><td>Description:</td><td><?=nl2br(ucfirst(strip_tags($check->description)))?></td></tr>
<?php
if ($check->type == Model_Store::TYPE_ITEM) {
?>
	<tr><td>Picture:</td><td><img src="<?=PATH?>/media/images/store_items/<?=$check->itemid?>.<?=$this->config['website']['store']['ext']?>" alt="<?=urlencode($check->name)?>"></td></tr>
<?php
}
?>
<tr><td colspan="2"><a href="<?=PATH?>/store/buy/<?=$this->paramsURI[2]?>"><img src="<?=PATH?>/media/images/buy.gif" alt="buy" /></a><span style="float:right;"><a href="<?=PATH?>/store/<?=$this->default_action?>"><img src="<?=PATH?>/media/images/back.gif" alt="back" /></a></span></td></tr>
</table>